const TOKEN_NAME = 'hkzf_token'

// 获取token值
const getToken = ()=> localStorage.getItem(TOKEN_NAME)

// 设置token值
const setToken = value => localStorage.setItem(TOKEN_NAME,value)

// 删除token值
const removeToken = ()=> localStorage.removeItem(TOKEN_NAME)

// 是否登录（有权限）
const isAuth = ()=> !!getToken()

export {getToken,setToken,removeToken,isAuth}